package com.beijiteshop.shop.ui.notification.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.beijiteshop.shop.R
import com.beijiteshop.shop.databinding.ItemNotificationBinding
import com.beijiteshop.shop.model.entity.NotificationEntity

/**
 * 消息列表adapter
 */
class NotificationAdapter(data: MutableList<NotificationEntity>)
    : BaseQuickAdapter<NotificationEntity,BaseDataBindingHolder<ItemNotificationBinding>>(R.layout.item_notification,data){
    override fun convert(
        holder: BaseDataBindingHolder<ItemNotificationBinding>,
        item: NotificationEntity
    ) {
        holder.dataBinding?.notification = item
    }
}